<template>
  <div id="classifyFooterBar">
    <div class="bar-left">
      <div>
        <i class="iconfont iconkefu"></i>
        <div class="text">客服</div>
      </div>
      <div>
        <i class="iconfont icondianpu"></i>
        <div class="text">店铺</div>
      </div>
      <div>
        <i class="iconfont iconshoucang1"></i>
        <div class="text">收藏</div>
      </div>
    </div>
    <div class="bar-right">
      <div class="cart" @click="addShop">加入购物车</div>
      <div class="buy">购买</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'classifyFooterBar',
  components: {},
  data() {
    return {}
  },

  methods: {
    addShop (){
      this.$emit('addShop')
    }
  }
}
</script>
<style scoped>
#classifyFooterBar {
  background-color: #fff;
  height: 49px;
  position: fixed;
  bottom: 0px;
  left: 0;
  right: 0;
  display: flex;
}
.bar-left {
  width: 50%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.iconfont {
  font-size: 20px;
  margin-left: 26%;
}

.bar-right {
  width: 50%;
  font-size: 15px;
  color: #fff;
  display: flex;
  text-align: center;
  line-height: 49px;
  color: #333;
}

.bar-right .cart {
  background-color: #ffe817;
  flex: 1;
}
.bar-right .buy {
  background-color: #f69;
  flex: 1;
}
</style>
